package com.mask.demo.service.impl;

import com.mask.demo.dao.UserDao;
import com.mask.demo.dao.UserDaoAnno;
import com.mask.demo.service.UserService;
import com.mask.demo.service.UserServiceAnno;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.ImportResource;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Service;

/**
 * ClassName UserServiceImpl
 * Create by hx
 * Date 2021/9/15 7:13 下午
 */

@Service(value = "userService")
public class UserServiceImplAnno implements UserServiceAnno {
    @Autowired
    private UserDaoAnno userDao;
    @Override
    public void hello() {
        userDao.hello();
        System.out.println("userService say Hello Spring!");
    }
}
